package com.rs.service.impl.rs;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.rs.dao.BonusMapper;
import com.rs.model.Bonus;
import com.rs.service.rs.BonusService;


@Service
public class BonusServiceImpl implements BonusService{
	
	@Autowired
	private BonusMapper bm;
	//查询所有奖金申请
	@Override
	public List<Bonus> bonusAllPC() {
		return bm.bonusAllPC();
	}
	//根据ID查询
	@Override
	public Bonus bonusByIdPC(Bonus bonus) {
		return bm.bonusByIdPC(bonus);
	}
	//修改奖金申请
	@Override
	public int bonusUpdatePC(Bonus bonus) {
		return bm.bonusUpdatePC(bonus);
	}
	//添加奖金申请
	@Override
	public Integer bonusAddPC(Bonus bonus) {
		return bm.bonusAddPC(bonus);
	}
	//删除奖金申请
	@Override
	public Integer bonusDelPC(Bonus bonus) {
		return bm.bonusDelPC(bonus);
	}
	
	
	//App查询所有
	@Override
	public List<Bonus> bonusAllApp() {
		return bm.bonusAllApp();
	}
	//App修改
	@Override
	public Integer bonusUpdateApp(Bonus bonus) {
		return bm.bonusUpdateApp(bonus);
	}
	//App添加
	@Override
	public Integer bonusAddApp(Bonus bonus) {
		return bm.bonusAddApp(bonus);
	}
	//App删除
	@Override
	public Integer bonusDelApp(Bonus bonus) {
		return bm.bonusDelApp(bonus);
	}
	@Override
	public void bonusToExamine(Bonus bonus) {
		// TODO Auto-generated method stub
		
		bm.bonusUpdatePC(bonus);
		
	}
}
